package com.springclass;

import org.springframework.context.*;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class HelloSpringMain {

	public static void main(String[] args) {
	
		ApplicationContext ctx = 
				new ClassPathXmlApplicationContext("com/springclass/spring-config.xml");
		
		MessageLooper looper = ctx.getBean("messageLooper", MessageLooper.class);
		looper.doIt();

	}

}
